﻿using System.Collections.Generic;
using Moq;
using NGM.MicrosoftConnect;
using NUnit.Framework;

namespace NGM.MicrosoftConnectTests {
    //[TestFixture]
    //public class MicrosoftConnectClientTests {
    //    [Test]
    //    public void ShouldWriteValuesTo() {
    //        var microsoftConnectWebRequest = new Mock<IMicrosoftConnectWebRequest>();
    //        MicrosoftConnectClient microsoftConnectClient = new MicrosoftConnectClient("TestToken", microsoftConnectWebRequest.Object);

    //        IDictionary<string, string> parameters = new Dictionary<string,string>();
    //        parameters.Add("foo", "bar");
    //        microsoftConnectClient.Post("urlTest", parameters);

    //        microsoftConnectWebRequest.Verify(o => o.);
    //    }
    //}

    public class TestClass {
        public void Test() {
            //MicrosoftConnectClient microsoftConnectClient = new MicrosoftConnectClient("SomeKindaToken");

            //Query query = new Query();
            //query.AddPathPart("me");

            //var jsonString = microsoftConnectClient.Get(query);
            //var jsonString2 = microsoftConnectClient.Get("me");
            //var jsonString3 = microsoftConnectClient.Get("me/contacts");

            var microsoftConnectClient = new MicrosoftConnectClient("SomeKindaToken");
            dynamic obj = microsoftConnectClient.Get("me");
            
            IDictionary<string, string> parameters = new Dictionary<string,string>();
            microsoftConnectClient.Post("me", parameters);


         
        }
    }
}
